//
//  YDTransactionDetailTableCell.m
//  PeiZiWangBei
//
//  Created by LK-IOS on 2017/11/10.
//  Copyright © 2017年 LK-IOS. All rights reserved.
//

#import "YDTransactionDetailTableCell.h"

@interface YDTransactionDetailTableCell()


@end

@implementation YDTransactionDetailTableCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *transactionDetailTableCell = @"YDTransactionDetailTableCell";
    YDTransactionDetailTableCell *cell = [tableView dequeueReusableCellWithIdentifier:transactionDetailTableCell];
    if (cell == nil) {
        cell = [[YDTransactionDetailTableCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:transactionDetailTableCell];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return cell;
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.contentView.backgroundColor = [UIColor whiteColor];
        self.backgroundColor = [UIColor whiteColor];
        [self category1];
        [self contentRight];
    }
    return self;
}

-(UILabel *)category1
{
    if (_category1 == nil) {
        UILabel *category1 = [[UILabel alloc] init];
        [self.contentView addSubview:category1];
        category1.font = [UIFont systemFontOfSize:font14ScreenWRate * LKScreenW];
        category1.textColor = [UIColor colorWithHexString:blueyGrey];
        category1.textAlignment = NSTextAlignmentLeft;
        category1.text = @"-----";
        [category1 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self);
            make.left.equalTo(self).offset(rate375(24));
        }];
        _category1 = category1;
    }
    return _category1;
}
-(UILabel *)contentRight
{
    if (_contentRight == nil) {
        UILabel *contentRight = [[UILabel alloc] init];
        [self.contentView addSubview:contentRight];
        contentRight.font = [UIFont systemFontOfSize:font16ScreenWRate * LKScreenW];
        contentRight.textColor = [UIColor colorWithHexString:dark];
        contentRight.textAlignment = NSTextAlignmentRight;
        contentRight.text = @"---";
        [contentRight mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self);
            make.right.equalTo(self).offset(-rate375(30));
        }];
        _contentRight = contentRight;
    }
    return _contentRight;
}

@end
